<template>
  <BasicLayout title="陪诊员信息">
    <template slot="content">
      <Detail :lists="curLists" title="详情信息" />
    </template>
  </BasicLayout>
</template>

<script>
import BasicLayout from "@/components/BasicLayout/index.vue";
import Detail from "@/components/Detail/index.vue";
export default {
  components: {
    BasicLayout,
    Detail,
  },
  data() {
    return { curLists: [] };
  },
  created() {
    const { type } = this.$route.query;
    if (type === "staff") {
      import("@/constants/common/staff").then(
        ({ staffs }) => (this.curLists = staffs)
      );
    } else if (type === "order") {
      import("@/constants/common/people").then(
        ({ people }) => (this.curLists = people)
      );
    }
  },
};
</script>

<style scoped></style>
